package com.tianyu.inspection.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**********************************
 * @Author YSW
 * @Description 险情处理
 * @Date 2021/1/4 - 17:56
 **********************************/

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class DangerProcess implements Serializable {

    @TableId
    private Integer id;

    /**
     * 处理描述
     */
    private String description;

    /**
     * 现场图片地址
     */
    private String sceneImage;

    /**
     * 现场视频地址
     */
    private String sceneVideo;

    /**
     * 险情处理时间
     */
    private Date dealTime;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 险情处理状态[1 处理中 ,2 已解决]
     */
    private Integer status;


    /**
     * 处理人员ID
     */
    private Integer inspectorId;

    /**
     * 险情ID
     */
    private Integer dangerId;

    /**
     * 险情处理所属项目ID
     */
    private Integer projectId;

    @JsonIgnore
    private Integer state;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date modifyTime;

    @TableField(exist = false)
    private String inspectorName;

    @TableField(exist = false)
    private String inspectorPhone;
}
